package com.fiume.user.service;

import com.fiume.user.mapper.UserMapper;
import com.fiume.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * Description:
 * </p>
 *
 * @author fiume
 * @version v1.0.0
 * @create 2021-01-17 19:37
 * @see com.fiume.user.service
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;


    /*public UserService(UserMapper userMapper) {
        this.userMapper = userMapper;
    }*/

    public User findById(Long id) {
        return userMapper.findById(id);
    }

}
